home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / FAUG / FAUG05.ADF / polydraw.doc < prev    next >
Text File  |  1992-01-03  |  5KB  |  170 lines

  1.                         POLYDRAW INSTRUCTIONS
  2.                               WRITTEN BY
  3.                             DAVID ADDISON
  4.                        c 1985   (503)645-6985
  5.  
  6.  
  7.       In all the draw commands except the TEXT modes, pressing
  8. 'C' will let you change the color of the pen.
  9.       You can make your selections either from the keyboard or by
  10. pressing the '?' key and using mouse to select from menu.
  11.       Pressing space bar or any key except 'C' will exit from
  12. current mode and allow you to select another.
  13.  
  14.  
  15. A..... Alter Color palette
  16.       Point to the color at the top of the screen and press left
  17. mouse button to select color to alter.  Point to up & down arrows
  18. and press left button to change values for RED,GREEN and BLUE.
  19. When done click left button on circle next to the word QUIT.
  20.  
  21. B..... Box
  22.       Point to where you want the upper left hand corner of the
  23. box to be and press left button. Continue holding button down and
  24. move mouse to outline the box. When you have it where you want it
  25. release the mouse button.
  26.  
  27. C..... Change Color
  28.       Point to new color and double click left button.
  29.  
  30. D..... Draw
  31.       Hold down left button and move mouse to draw in the current
  32. color.
  33.  
  34. E..... Ellipse
  35.        Point to where you want the center of your ellipse to be
  36. and press left button. continue holding button and move mouse.
  37. Moving the mouse right & left changes ellipse horizontally, up &
  38. dowm changes ellipse vertically. Release button to complete
  39. ellipse.
  40.  
  41. F..... Fill
  42.        Point to where you want fill to start and press left mouse
  43. button.
  44.  
  45. K..... Load  (shape or picture)
  46.        Enter name of picture or shape you want to load at prompt.
  47. Place pointer where you want the upper lefthand corner of picture
  48. or shape to be and press left button.(or press return to place
  49. picture at X=0 and Y=0)
  50.  
  51. L..... Line
  52.       Place pointer where you want line to start, hold down left
  53. button and move mouse to position the end point of line. Release
  54. button to draw line.
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. M..... Cycle Colors
  70.       Enter the starting color register (0-31).
  71.       Enter the ending color register (0-31).
  72.       Enter the speed of color rotation. Small numbers=FAST,
  73. large numbers=SLOW.
  74.       Press left button to stop rotation.
  75.  
  76. O..... Circle
  77.       Place pointer where center of circle will be. Press and
  78. old left button to draw circle. Release button to finish circle.
  79.  
  80. Q..... QUIT
  81.       To end program and return to basic.
  82.  
  83. R..... Rays
  84.       Place pointer where center of ray will be. Press and hold
  85. left button to draw ray.  This works good to erase things when
  86. you are using the background color.
  87.  
  88. S..... Save (shape or picture)
  89.       Point to upper lefthand corner of shape and press left
  90. button. (press return to save the whole screen)  Move mouse to
  91. lower righthand corner and press left button.  Enter the name of
  92. picture or shape at prompt and press return.  Use SIZE to
  93. dimension an integer array in basic to hold your pictures and
  94. shapes.
  95.  
  96. TB.... Big Text
  97.       Move pointer to where text line begins and press left
  98. button.  Pointer is the lower left corner of text.  Begin typing
  99. in text. Press return to end line and start another. Press left
  100. button before pressing return to exit text mode.  Press control
  101. "C" to change color of text.
  102.  
  103. TS.... Small Text
  104.       See Big Text.
  105.  
  106. U..... Clear Screen
  107.       Erases screen.
  108.  
  109. X..... Copy Shape
  110.       Point to upper left corner of shape and press left button
  111.  (or press return to use the last shape you defined) . Point to 
  112. lower right corner of shape and press left button.  Shape is now 
  113. ready to use. Point to where you want shape to be and press left 
  114. button.  You can use shape as a brush by holding down left button
  115. while moving the mouse.
  116.  
  117. Z..... Show X & Y
  118.       This toggles the XY window on and off.  This window updates
  119. slowly so as not to interupt the drawing modes to much.
  120.  
  121. ?..... Menu
  122.       Allows you to choose your options with the mouse. Select 
  123. mode with mouse and double click the left mouse button.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. When you save a picture or shape, a second file with the same 
  136. name as the picture except for a '_dat' extender will be created
  137. also.  This file will hold the Color values for this picture or 
  138. shape.  See example below on how to use this in your own 
  139. programs.
  140.  
  141.  
  142.  
  143. BASIC EXAMPLE OF USING PICTURES OR SHAPES IN YOUR OWN PROGRAMS
  144.  
  145. 10 scnclr:screen 0,5
  146.  
  147. 100 DIM picture%(11000): REM array to hold picture or shape. Use
  148. the value of SIZE from polydraw program when you saved the shape.
  149.  
  150. 110 DIM colors%(100): REM this array will hold the color palette.
  151.  
  152. 120 BLOAD "filename_dat",VARPTR(colors%(0)): REM Use the name of
  153. the shape you are loading in place of filename. Make sure you add
  154. the "_dat" extender
  155.  
  156. 130 REM routine to load the color registers with color values
  157. 140 cnt=0
  158. 150 FOR j%=0 to 31
  159. 160 RGB j%,colors%(cnt),colors%(cnt+1),colors%(cnt+2)
  160. 170 cnt=cnt+3
  161. 180 NEXT j%
  162.  
  163. 190 REM routine to load picture or shape and display on screen
  164. 200 BLOAD "filename",VARPTR(picture%(0)): REM loads picture into
  165. array. Use your own picture name in place of "filename".
  166.  
  167. 210 x%=100:y%=50: REM X & Y of upper left corner where picture 
  168. will go.
  169.  
  170. 220 GSHAPE (x%,y%),picture%(): REM places picture on screen